﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="UserSet" targetNamespace="http://tempuri.org/UserSet.xsd" xmlns:mstns="http://tempuri.org/UserSet.xsd" xmlns="http://tempuri.org/UserSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="EAppointmentConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="EAppointmentConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.EAppointmentConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TB_BaseUserInfoTableAdapter" GeneratorDataComponentClassName="TB_BaseUserInfoTableAdapter" Name="TB_BaseUserInfo" UserDataComponentName="TB_BaseUserInfoTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.TB_BaseUserInfo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [TB_BaseUserInfo] WHERE (([User_ID] = @Original_User_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_User_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="User_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [TB_BaseUserInfo] ([User_Email], [User_TrueName], [User_Phone], [User_RegisterDate], [User_Password], [User_Status]) VALUES (@User_Email, @User_TrueName, @User_Phone, @User_RegisterDate, @User_Password, @User_Status)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User_Email" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User_TrueName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User_TrueName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User_Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@User_RegisterDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="User_RegisterDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User_Password" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@User_Status" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="User_Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>Select * from TB_BaseUserInfo</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [TB_BaseUserInfo] SET [User_Email] = @User_Email, [User_TrueName] = @User_TrueName, [User_Phone] = @User_Phone, [User_RegisterDate] = @User_RegisterDate, [User_Password] = @User_Password, [User_Status] = @User_Status WHERE (([User_ID] = @Original_User_ID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User_Email" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User_TrueName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User_TrueName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User_Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@User_RegisterDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="User_RegisterDate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@User_Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="User_Password" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@User_Status" Precision="0" ProviderType="TinyInt" Scale="0" Size="0" SourceColumn="User_Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_User_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="User_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="User_ID" DataSetColumn="User_ID" />
              <Mapping SourceColumn="User_Email" DataSetColumn="User_Email" />
              <Mapping SourceColumn="User_TrueName" DataSetColumn="User_TrueName" />
              <Mapping SourceColumn="User_Phone" DataSetColumn="User_Phone" />
              <Mapping SourceColumn="User_RegisterDate" DataSetColumn="User_RegisterDate" />
              <Mapping SourceColumn="User_Password" DataSetColumn="User_Password" />
              <Mapping SourceColumn="User_Status" DataSetColumn="User_Status" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.Proc_ActiveUser" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="ActiveUser" Modifier="Public" Name="ActiveUser" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="ActiveUser">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.Proc_ActiveUser</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="19" ProviderType="BigInt" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@Result" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.Proc_GetUserInfoByID" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="GetDataByID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.Proc_GetUserInfoByID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@ID" Precision="19" ProviderType="BigInt" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.Proc_GetBaseUserInfo" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetOneDataByKey" GeneratorSourceName="GetOneFillByKey" GetMethodModifier="Public" GetMethodName="GetOneDataByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetOneDataByKey" UserSourceName="GetOneDataByKey">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.Proc_GetBaseUserInfo</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Key" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.Proc_RegisterUser" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="RegisterUser" Modifier="Public" Name="RegisterUser" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="RegisterUser">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.Proc_RegisterUser</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TrueName" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Password" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@Result" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="UserSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="UserSet" msprop:Generator_UserDSName="UserSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="TB_BaseUserInfo" msprop:Generator_TableClassName="TB_BaseUserInfoDataTable" msprop:Generator_TableVarName="tableTB_BaseUserInfo" msprop:Generator_TablePropName="TB_BaseUserInfo" msprop:Generator_RowDeletingName="TB_BaseUserInfoRowDeleting" msprop:Generator_RowChangingName="TB_BaseUserInfoRowChanging" msprop:Generator_RowEvHandlerName="TB_BaseUserInfoRowChangeEventHandler" msprop:Generator_RowDeletedName="TB_BaseUserInfoRowDeleted" msprop:Generator_UserTableName="TB_BaseUserInfo" msprop:Generator_RowChangedName="TB_BaseUserInfoRowChanged" msprop:Generator_RowEvArgName="TB_BaseUserInfoRowChangeEvent" msprop:Generator_RowClassName="TB_BaseUserInfoRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="User_ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnUser_ID" msprop:Generator_ColumnPropNameInRow="User_ID" msprop:Generator_ColumnPropNameInTable="User_IDColumn" msprop:Generator_UserColumnName="User_ID" type="xs:long" />
              <xs:element name="User_Email" msprop:Generator_ColumnVarNameInTable="columnUser_Email" msprop:Generator_ColumnPropNameInRow="User_Email" msprop:Generator_ColumnPropNameInTable="User_EmailColumn" msprop:Generator_UserColumnName="User_Email">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="User_TrueName" msprop:Generator_ColumnVarNameInTable="columnUser_TrueName" msprop:Generator_ColumnPropNameInRow="User_TrueName" msprop:Generator_ColumnPropNameInTable="User_TrueNameColumn" msprop:Generator_UserColumnName="User_TrueName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="User_Phone" msprop:Generator_ColumnVarNameInTable="columnUser_Phone" msprop:Generator_ColumnPropNameInRow="User_Phone" msprop:Generator_ColumnPropNameInTable="User_PhoneColumn" msprop:Generator_UserColumnName="User_Phone">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="User_RegisterDate" msprop:Generator_ColumnVarNameInTable="columnUser_RegisterDate" msprop:Generator_ColumnPropNameInRow="User_RegisterDate" msprop:Generator_ColumnPropNameInTable="User_RegisterDateColumn" msprop:Generator_UserColumnName="User_RegisterDate" type="xs:dateTime" />
              <xs:element name="User_Password" msprop:Generator_ColumnVarNameInTable="columnUser_Password" msprop:Generator_ColumnPropNameInRow="User_Password" msprop:Generator_ColumnPropNameInTable="User_PasswordColumn" msprop:Generator_UserColumnName="User_Password">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="User_Status" msprop:Generator_ColumnVarNameInTable="columnUser_Status" msprop:Generator_ColumnPropNameInRow="User_Status" msprop:Generator_ColumnPropNameInTable="User_StatusColumn" msprop:Generator_UserColumnName="User_Status" type="xs:unsignedByte" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:TB_BaseUserInfo" />
      <xs:field xpath="mstns:User_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>